package com.company.OfferGuide;

public class 求12n {

    public static void main(String[] args) {
        System.out.println(sumNums(9));
    }

    public static int sumNums(int n) {
        if (n == 1) return 1;
        else return sumNums(n - 1) + n;
    }

}
